import request from '@/utils/request'

// 登录请求
export function login(data) {
  return request.post('/auth/local', data)
}

// 注册请求
export function register(data) {
  return request.post('/auth/local/register', data)
}

// 获取当前用户信息
export function getUserInfo() {
  return request.get('/users/me')
}

// 获取当前用户权限
export function getMypermissions() {
  return request.get('/mypermissions')
}
